//
//  SNViewController.h
//  DayDayHappy
//
//  Created by yutao on 14-2-22.
//  Copyright (c) 2014年 yutao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFNetworking.h"
#import "SNDayHappyApi.h"
#import "SVPullToRefresh.h"
#import "SNImageModel.h"
#import "ShareCenter.h"
#import "SNLoadingView.h"
#import "DBHelper.h"

#define kContentsArrayKey        @"contents"
#define kNextPageVersionArrayKey @"next_ver"
#define kNextPageArrayKey        @"page"
#define kCurrVersionKey          @"ver"
@interface SNViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>

@property(nonatomic, strong)NSMutableArray *contentDataArray;
@property(nonatomic, strong)NSString       *requestUrl;
@property(nonatomic, strong)UITableView    *contentTableView;
@property(nonatomic, assign)NSString       *nextPage;
@property(nonatomic, assign)NSString       *currentVersion;
@property (nonatomic,strong)SNLoadingView *loadingView;
@property (nonatomic,strong)DBHelper      *dbHelper;
//- (void)newContentInsertTop;
- (void)nextPageContentInsertBottom;
- (SNBaseModel *)currModelWithObj:(id)obj;
- (Class)currModel;
- (NSString *)currentType;
- (NSString *)createNextPageRequestUrl;
- (BOOL)isiOS7;
@end
